package pack1;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class sprg24 {
public static void main(String[] args) throws InterruptedException {
	WebDriver driver=new FirefoxDriver();
	driver.manage().window().maximize();
	driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
	driver.get("http://demo.actitime.com");
	driver.findElement(By.name("username")).sendKeys("admin");
	driver.findElement(By.name("pwd")).sendKeys("manager");
	driver.findElement(By.id("loginButton")).click();
	Thread.sleep(1000);
	driver.findElement(By.xpath("//div[text()='Tasks']")).click();
	Thread.sleep(1000);
	
	driver.findElement(By.linkText("All")).click();
	
	driver.findElement(By.xpath("//input[@value='Delete Selected Tasks']")).click();
	
	Thread.sleep(1000);
	
	driver.findElement(By.id("deleteButton"));
}
}
